master - test: Fix loading of an append-mode journal.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a8eb70209322f4344b9b11d190f64a9184fe23eb Commit: a8eb70209322f4344b9b11d190f64a9184fe23eb Parent: d74c1472233e29b9168966334315dc012ee915ce Author: Petr Rockai <[email protected]> AuthorDate: Mon Jun 30 00:38:07 2014 +0200 Committer: Petr Rockai <[email protected]> CommitterDate: Thu Feb 5 13:47:18 2015 +0100
test: Fix loading of an append-mode journal.
--- test/lib/journal.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
test/lib/journal.h +2 -1
@@ -157,7 +157,8 @@ struct Journal { void read( std::string n ) { std::ifstream ifs( n.c_str() ); typedef std::istream_iterator< std::pair< std::string, R > > It; - std::copy( It( ifs ), It(), std::inserter( status, status.begin() ) ); +for (It i (ifs ); i !=It (); ++i ) + status[ i->first ] = i->second; }void read () {read ( location ); }