Skip to content

Commit

Permalink
Revert "JounralingObjectStore: journal->committed_thru after replay"
Browse files Browse the repository at this point in the history
committed_thru can race with the sync thread.

This reverts commit d8d27f1.
Reviewed-by: Greg Farnum <[email protected]>
  • Loading branch information
Samuel Just committed Nov 18, 2013
1 parent 878f354 commit 703f9a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 1 addition & 5 deletions src/os/FileJournal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ int FileJournal::open(uint64_t fs_op_seq)
{
dout(2) << "open " << fn << " fsid " << fsid << " fs_op_seq " << fs_op_seq << dendl;

last_committed_seq = fs_op_seq;
uint64_t next_seq = fs_op_seq + 1;

int err = _open(false);
Expand Down Expand Up @@ -527,11 +528,6 @@ int FileJournal::open(uint64_t fs_op_seq)
// find next entry
read_pos = header.start;
uint64_t seq = header.start_seq;

// last_committed_seq is 1 before the start of the journal or
// 0 if the start is 0
last_committed_seq = seq > 0 ? seq - 1 : seq;

while (1) {
bufferlist bl;
off64_t old_pos = read_pos;
Expand Down
2 changes: 0 additions & 2 deletions src/os/JournalingObjectStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ int JournalingObjectStore::journal_replay(uint64_t fs_op_seq)
// done reading, make writeable.
journal->make_writeable();

journal->committed_thru(fs_op_seq);

return count;
}

Expand Down

0 comments on commit 703f9a0

Please sign in to comment.