]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
TestPGLog: fix noop log proc_replica_log test case
authorSamuel Just <sjust@redhat.com>
Thu, 9 Apr 2015 23:28:23 +0000 (16:28 -0700)
committerLoic Dachary <ldachary@redhat.com>
Tue, 28 Jul 2015 13:32:58 +0000 (15:32 +0200)
Need to fill in log.head, olog.head.

Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 1e5b22053381580708af29a1536f1e106c9b479c)

src/test/osd/TestPGLog.cc

index 5ea7158e451d2f40c7cf4a04f9b3ea35423ae78d..92128434726a692276a2f2d322cc7ae8c2b6a3a9 100644 (file)
@@ -1281,8 +1281,8 @@ TEST_F(PGLogTest, proc_replica_log) {
     pg_shard_t from;
 
     eversion_t last_update(1, 1);
-    oinfo.last_update = last_update;
-    eversion_t last_complete(2, 1);
+    log.head = olog.head = oinfo.last_update = last_update;
+    eversion_t last_complete(1, 1);
     oinfo.last_complete = last_complete;
 
     EXPECT_TRUE(t.empty());