summaryrefslogtreecommitdiffstats
path: root/src/storage/ngram_kyotodb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/storage/ngram_kyotodb.h')
-rw-r--r--src/storage/ngram_kyotodb.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/storage/ngram_kyotodb.h b/src/storage/ngram_kyotodb.h
index f1f28d8..429c46e 100644
--- a/src/storage/ngram_kyotodb.h
+++ b/src/storage/ngram_kyotodb.h
@@ -60,6 +60,7 @@ public:
*/
~Bigram();
+#if 0
/**
* Bigram::load_db:
* @dbfile: the Berkeley DB file name.
@@ -79,6 +80,7 @@ public:
*
*/
bool save_db(const char * dbfile);
+#endif
/**
* Bigram::attach:
@@ -91,6 +93,12 @@ public:
*/
bool attach(const char * dbfile, guint32 flags);
+ bool sync() {
+ assert(NULL != m_db);
+ m_db->synchronize();
+ return true;
+ }
+
/**
* Bigram::load:
* @index: the previous token in the bi-gram.