From b7090c76f86f1f5a0c2f6dd21836d2b880db0210 Mon Sep 17 00:00:00 2001 From: Ebus-at-dockstar Date: Tue, 30 Apr 2013 18:15:07 +0200 Subject: leveldb: db_close one line per db --- datastore-leveldb/src/db.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'datastore-leveldb/src') 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! } -- cgit v1.2.1