]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Ignore a zero-sized file while looking for a seq-no in GetUpdatesSince
authorAbhishek Kona <abhishekk@fb.com>
Mon, 18 Mar 2013 21:50:59 +0000 (14:50 -0700)
committerAbhishek Kona <abhishekk@fb.com>
Tue, 19 Mar 2013 18:00:09 +0000 (11:00 -0700)
commit02c459805bd6809e7309fcf56e7673d444b47dd5
treee3b2beddd61c97dd63f3113d015c2fee29764d6b
parent7b9db9c98e9a4f7eb923dbf283a6fd571148de7d
Ignore a zero-sized file while looking for a seq-no in GetUpdatesSince

Summary:
Rocksdb can create 0 sized log files when it is opened and closed without any operations.
The GetUpdatesSince fails currently if there is a log file of size zero.

This diff fixes this. If there is a log file is 0, it is removed form the probable_file_list

Test Plan: unit test

Reviewers: dhruba, heyongqiang

Reviewed By: heyongqiang

CC: leveldb
Differential Revision: https://reviews.facebook.net/D9507
db/db_impl.cc
db/db_impl.h
db/db_test.cc