diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-06 19:25:50 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-06 19:25:50 +0200 |
commit | ac61e46c81e248841829adfc63b1804b9df6feb1 (patch) | |
tree | 59644523b90113d97a5c680d5d1c456d2cd2efbd /common/storage_lmdb.cpp | |
parent | dd1364151f0f572091331dfb885225d2e3ab72c5 (diff) | |
download | sink-ac61e46c81e248841829adfc63b1804b9df6feb1.tar.gz sink-ac61e46c81e248841829adfc63b1804b9df6feb1.zip |
Cleanup
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 | } |