rroonga 2.1.1-x86-mingw32 → 2.1.2-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/doc/text/news.textile +6 -0
- data/ext/groonga/rb-grn-context.c +22 -0
- data/ext/groonga/rb-grn-database.c +1 -14
- data/ext/groonga/rb-grn-table.c +3 -0
- data/ext/groonga/rb-grn.h +3 -1
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- metadata +4 -4
data/doc/text/news.textile
CHANGED
@@ -136,6 +136,28 @@ rb_grn_context_reset_floating_objects (RbGrnContext *rb_grn_context)
|
|
136
136
|
GRN_OBJ_TABLE_HASH_KEY);
|
137
137
|
}
|
138
138
|
|
139
|
+
void
|
140
|
+
rb_grn_context_mark_grn_id (grn_ctx *context, grn_id id)
|
141
|
+
{
|
142
|
+
grn_obj *object;
|
143
|
+
grn_user_data *user_data;
|
144
|
+
RbGrnObject *rb_grn_object;
|
145
|
+
|
146
|
+
object = grn_ctx_at(context, id);
|
147
|
+
if (!object)
|
148
|
+
return;
|
149
|
+
|
150
|
+
user_data = grn_obj_user_data(context, object);
|
151
|
+
if (!user_data)
|
152
|
+
return;
|
153
|
+
|
154
|
+
rb_grn_object = RB_GRN_OBJECT(user_data->ptr);
|
155
|
+
if (!rb_grn_object)
|
156
|
+
return;
|
157
|
+
|
158
|
+
rb_gc_mark(rb_grn_object->self);
|
159
|
+
}
|
160
|
+
|
139
161
|
static void
|
140
162
|
rb_grn_context_unlink_database (grn_ctx *context)
|
141
163
|
{
|
@@ -62,20 +62,7 @@ rb_grn_database_mark_existing_ruby_object (grn_ctx *context, grn_obj *database)
|
|
62
62
|
return;
|
63
63
|
|
64
64
|
while ((id = grn_table_cursor_next(context, cursor)) != GRN_ID_NIL) {
|
65
|
-
|
66
|
-
grn_user_data *user_data;
|
67
|
-
RbGrnObject *rb_grn_object;
|
68
|
-
|
69
|
-
object = grn_ctx_at(context, id);
|
70
|
-
if (!object)
|
71
|
-
continue;
|
72
|
-
user_data = grn_obj_user_data(context, object);
|
73
|
-
if (!user_data)
|
74
|
-
continue;
|
75
|
-
rb_grn_object = RB_GRN_OBJECT(user_data->ptr);
|
76
|
-
if (!rb_grn_object)
|
77
|
-
continue;
|
78
|
-
rb_gc_mark(rb_grn_object->self);
|
65
|
+
rb_grn_context_mark_grn_id(context, id);
|
79
66
|
}
|
80
67
|
grn_table_cursor_close(context, cursor);
|
81
68
|
}
|
data/ext/groonga/rb-grn-table.c
CHANGED
@@ -123,6 +123,9 @@ rb_grn_table_mark (void *data)
|
|
123
123
|
if (!context || !table)
|
124
124
|
return;
|
125
125
|
|
126
|
+
rb_grn_context_mark_grn_id(context, table->header.domain);
|
127
|
+
rb_grn_context_mark_grn_id(context, grn_obj_get_range(context, table));
|
128
|
+
|
126
129
|
if (!grn_obj_path(context, table))
|
127
130
|
return;
|
128
131
|
|
data/ext/groonga/rb-grn.h
CHANGED
@@ -76,7 +76,7 @@ RB_GRN_BEGIN_DECLS
|
|
76
76
|
|
77
77
|
#define RB_GRN_MAJOR_VERSION 2
|
78
78
|
#define RB_GRN_MINOR_VERSION 1
|
79
|
-
#define RB_GRN_MICRO_VERSION
|
79
|
+
#define RB_GRN_MICRO_VERSION 2
|
80
80
|
|
81
81
|
#define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
|
82
82
|
|
@@ -309,6 +309,8 @@ void rb_grn_context_unregister_floating_object
|
|
309
309
|
(RbGrnObject *rb_grn_object);
|
310
310
|
void rb_grn_context_close_floating_objects(RbGrnContext *rb_grn_context);
|
311
311
|
void rb_grn_context_reset_floating_objects(RbGrnContext *rb_grn_context);
|
312
|
+
void rb_grn_context_mark_grn_id (grn_ctx *context,
|
313
|
+
grn_id id);
|
312
314
|
grn_ctx *rb_grn_context_ensure (VALUE *context);
|
313
315
|
VALUE rb_grn_context_get_default (void);
|
314
316
|
VALUE rb_grn_context_to_exception (grn_ctx *context,
|
data/lib/1.8/groonga.so
CHANGED
Binary file
|
data/lib/1.9/groonga.so
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rroonga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 2
|
10
|
+
version: 2.1.2
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Kouhei Sutou
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date:
|
22
|
+
date: 2013-01-04 00:00:00 Z
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
25
25
|
name: pkg-config
|