summaryrefslogtreecommitdiff
path: root/datastore-leveldb/src
diff options
context:
space:
mode:
authorEbus-at-dockstar <ebus@dockstar>2013-04-30 18:15:07 +0200
committerEbus-at-dockstar <ebus@dockstar>2013-04-30 18:15:07 +0200
commitb7090c76f86f1f5a0c2f6dd21836d2b880db0210 (patch)
tree992ea2287e3bb48ab283d2fc691ef15e22cac8ed /datastore-leveldb/src
parent934b47030b03c6bc69848097cd77450f6c781d88 (diff)
downloadebus-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.cpp3
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!
}