diff options
Diffstat (limited to 'common/storage_lmdb.cpp')
-rw-r--r-- | common/storage_lmdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 2c0240d..352e250 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -624,9 +624,9 @@ Storage::Private::Private(const QString &s, const QString &n, AccessMode m) : st | |||
624 | env = 0; | 624 | env = 0; |
625 | } else { | 625 | } else { |
626 | // FIXME: dynamic resize | 626 | // FIXME: dynamic resize |
627 | const size_t dbSize = (size_t)10485760 * (size_t)8000; // 1MB * 8000 | ||
628 | // In order to run valgrind this size must be smaller than half your available RAM | 627 | // In order to run valgrind this size must be smaller than half your available RAM |
629 | // https://github.com/BVLC/caffe/issues/2404 | 628 | // https://github.com/BVLC/caffe/issues/2404 |
629 | const size_t dbSize = (size_t)10485760 * (size_t)8000; // 1MB * 8000 | ||
630 | mdb_env_set_mapsize(env, dbSize); | 630 | mdb_env_set_mapsize(env, dbSize); |
631 | sEnvironments.insert(fullPath, env); | 631 | sEnvironments.insert(fullPath, env); |
632 | } | 632 | } |