diff options
-rw-r--r-- | common/storage_kyoto.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/common/storage_kyoto.cpp b/common/storage_kyoto.cpp index d61c6c4..4179c8b 100644 --- a/common/storage_kyoto.cpp +++ b/common/storage_kyoto.cpp | |||
@@ -12,6 +12,19 @@ | |||
12 | 12 | ||
13 | #include <kchashdb.h> | 13 | #include <kchashdb.h> |
14 | 14 | ||
15 | //FIXME: Private::db needs to be shared process-wide for a given db; from the kc docs: | ||
16 | // "It is forbidden for multible database objects in a process to open the same database at the same time." | ||
17 | |||
18 | //TODO: research what can be done about this (from kc docs): | ||
19 | // "To avoid data missing or corruption, it is important to close every database file by the | ||
20 | // BasicDB::close method when the database is no longer in use." | ||
21 | |||
22 | //TODO: research answers for max open files limit -> | ||
23 | // "After that got sources of kyotocabinet and researched that for every kyoto File() | ||
24 | // object special TSDKey object created, and this object create pthread_key. By default | ||
25 | // one process can create limited number of this keys, and this number defined in PTHREAD_KEYS_MAX." | ||
26 | // - http://stackoverflow.com/questions/22023419/kyotocabinet-and-scalajava-limit-of-db-files-open | ||
27 | |||
15 | class Storage::Private | 28 | class Storage::Private |
16 | { | 29 | { |
17 | public: | 30 | public: |