diff options
author | Peng Wu <alexepico@gmail.com> | 2019-01-17 15:20:32 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2019-01-17 15:20:32 +0800 |
commit | 35adc8e4fc41dd8c989dc16760e179b63637203a (patch) | |
tree | 992e26addaa7717bdb2cf3751bf874c6c146cc50 /src/storage/phrase_large_table3_kyotodb.cpp | |
parent | b825ba207cec09f53f100fa48c177c1fddf9949b (diff) | |
download | libpinyin-35adc8e4fc41dd8c989dc16760e179b63637203a.tar.gz libpinyin-35adc8e4fc41dd8c989dc16760e179b63637203a.tar.xz libpinyin-35adc8e4fc41dd8c989dc16760e179b63637203a.zip |
Revert "not use in-memory DBM in src/storage"
This reverts commit 5607752c2b989849923676f4a925e5315a3303d4.
Diffstat (limited to 'src/storage/phrase_large_table3_kyotodb.cpp')
-rw-r--r-- | src/storage/phrase_large_table3_kyotodb.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/storage/phrase_large_table3_kyotodb.cpp b/src/storage/phrase_large_table3_kyotodb.cpp index 80eb075..529aa65 100644 --- a/src/storage/phrase_large_table3_kyotodb.cpp +++ b/src/storage/phrase_large_table3_kyotodb.cpp @@ -67,7 +67,6 @@ bool PhraseLargeTable3::attach(const char * dbfile, guint32 flags) { return m_db->open(dbfile, mode); } -#if 0 /* load_db/store_db method */ /* use in-memory DBM here, for better performance. */ bool PhraseLargeTable3::load_db(const char * filename) { @@ -95,7 +94,7 @@ bool PhraseLargeTable3::load_db(const char * filename) { return true; } -bool PhraseLargeTable3::store_db(const char * new_filename) { +bool PhraseLargeTable3::store_db(const char * new_filename){ int ret = unlink(new_filename); if ( ret != 0 && errno != ENOENT) return false; @@ -113,7 +112,6 @@ bool PhraseLargeTable3::store_db(const char * new_filename) { return true; } -#endif /* search method */ int PhraseLargeTable3::search(int phrase_length, |