[lvm-devel] master - test: Fix loading of an append-mode journal.

Petr Rockai mornfall at fedoraproject.org
Thu Feb 5 13:41:46 UTC 2015


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a8eb70209322f4344b9b11d190f64a9184fe23eb
Commit:        a8eb70209322f4344b9b11d190f64a9184fe23eb
Parent:        d74c1472233e29b9168966334315dc012ee915ce
Author:        Petr Rockai <prockai at redhat.com>
AuthorDate:    Mon Jun 30 00:38:07 2014 +0200
Committer:     Petr Rockai <prockai at redhat.com>
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(-)

diff --git a/test/lib/journal.h b/test/lib/journal.h
index 458d1ee..8913d7c 100644
--- a/test/lib/journal.h
+++ b/test/lib/journal.h
@@ -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 ); }




More information about the lvm-devel mailing list