diff options
author | Ebus-at-dockstar <ebus@dockstar> | 2013-04-30 18:15:07 +0200 |
---|---|---|
committer | Ebus-at-dockstar <ebus@dockstar> | 2013-04-30 18:15:07 +0200 |
commit | b7090c76f86f1f5a0c2f6dd21836d2b880db0210 (patch) | |
tree | 992ea2287e3bb48ab283d2fc691ef15e22cac8ed /datastore-leveldb/src | |
parent | 934b47030b03c6bc69848097cd77450f6c781d88 (diff) | |
download | ebus-alt-b7090c76f86f1f5a0c2f6dd21836d2b880db0210.tar.gz ebus-alt-b7090c76f86f1f5a0c2f6dd21836d2b880db0210.zip |
leveldb: db_close one line per db
Diffstat (limited to 'datastore-leveldb/src')
-rw-r--r-- | datastore-leveldb/src/db.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/datastore-leveldb/src/db.cpp b/datastore-leveldb/src/db.cpp index 1ca8d50..991a82e 100644 --- a/datastore-leveldb/src/db.cpp +++ b/datastore-leveldb/src/db.cpp @@ -63,10 +63,9 @@ bool db_insert(std::string& name, const uint64_t timestamp, std::string& value) } void db_close() { - std::cout << "Close Databases: "; auto it = dbs.begin(); while (it != dbs.end()) { - std::cout << (*it).first << ". "; + std::cout << "Close Database: " << (*it).first << std::endl; delete (*it).second; dbs.erase(it++); //post increment! } |