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/facade_chewing_table2.h | |
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/facade_chewing_table2.h')
-rw-r--r-- | src/storage/facade_chewing_table2.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/storage/facade_chewing_table2.h b/src/storage/facade_chewing_table2.h index 941ca63..1cf2a1f 100644 --- a/src/storage/facade_chewing_table2.h +++ b/src/storage/facade_chewing_table2.h @@ -84,25 +84,17 @@ public: } if (user_filename) { m_user_chewing_table = new ChewingLargeTable2; - result = m_user_chewing_table->attach - (user_filename, ATTACH_READWRITE|ATTACH_CREATE) || result; + result = m_user_chewing_table->load_db + (user_filename) || result; } return result; } - bool sync() { - if (NULL == m_user_chewing_table) - return false; - return m_user_chewing_table->sync(); - } - -#if 0 bool store(const char * new_user_filename) { if (NULL == m_user_chewing_table) return false; return m_user_chewing_table->store_db(new_user_filename); } -#endif /** * FacadeChewingTable2::search: |