]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/filestore/FileJournal: Removing dead code
authorErwan Velu <erwan@redhat.com>
Tue, 12 Jan 2016 10:33:52 +0000 (11:33 +0100)
committerErwan Velu <erwan@redhat.com>
Tue, 19 Jan 2016 10:05:23 +0000 (11:05 +0100)
Despite read_pos & last_committed_seq, the seq variable is local and created a
few lines before.

While the reinitiliasation of read_pos & last_commited_seq is useless, the seq
variable is destroyed by the return call.

That makes the "seq = 0" being useless and a dead code. This patch simply
removes it.

Signed-off-by: Erwan Velu <erwan@redhat.com>
src/os/filestore/FileJournal.cc

index fa4751bf66e165af8eba80d6a270099cbd11d434..e331594446af7d860049eb2e4cdc04578cbc0f0e 100644 (file)
@@ -540,7 +540,6 @@ int FileJournal::open(uint64_t fs_op_seq)
               << dendl;
       read_pos = -1;
       last_committed_seq = 0;
-      seq = 0;
       return 0;
     }
     if (seq == next_seq) {