]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fixed a potential write hang
authorYueh-Hsuan Chiang <yhchiang@fb.com>
Thu, 19 Jun 2014 21:53:03 +0000 (14:53 -0700)
committerYueh-Hsuan Chiang <yhchiang@fb.com>
Thu, 19 Jun 2014 21:53:03 +0000 (14:53 -0700)
commit4f5ccfd1796d34f80121b2a6772a230fc6e6ba1d
treeeb8c1031cabf68da84218d8f8fd1fed03362ca4b
parentbae495740d9077f4a7e45cf3c0e05cec6d7baeb2
Fixed a potential write hang

Summary:
Currently, when something badly happen in the DB::Write() while the write-queue
contains more than one element, the current design seems to forget to clean up
the queue as well as wake-up all the writers, this potentially makes rocksdb
hang on writes.

Test Plan: make all check

Reviewers: sdong, ljin, igor, haobo

Reviewed By: haobo

Subscribers: leveldb

Differential Revision: https://reviews.facebook.net/D19167
db/db_impl.cc