null+****@clear*****
null+****@clear*****
2011年 6月 30日 (木) 20:11:17 JST
Daijiro MORI 2011-06-30 11:11:17 +0000 (Thu, 30 Jun 2011)
New Revision: f64134307bcbd85b11e1f475942681d6858d7482
Log:
Fixed missing header update in grn_dat
Modified files:
lib/dat.cpp
Modified: lib/dat.cpp (+1 -1)
===================================================================
--- lib/dat.cpp 2011-06-29 23:23:53 +0000 (0ff5f0c)
+++ lib/dat.cpp 2011-06-30 11:11:17 +0000 (445f777)
@@ -209,7 +209,7 @@ grn_dat_add(grn_ctx *ctx, grn_dat *dat, const void *key,
grn::dat::Trie *new_trie = new grn::dat::Trie;
new_trie->create(*trie, buffer, trie->file_size() * 2);
dat->handle = new_trie;
- dat->file_id = file_id;
+ dat->header->file_id = dat->file_id = file_id;
/* UNLOCK */
/* should be deleted after enough interval */
if (new_trie == NULL) { goto exit; }