]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: add timeout to wait_for_osdmap()
authorJosh Durgin <josh.durgin@inktank.com>
Mon, 3 Feb 2014 20:53:15 +0000 (12:53 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 10 Feb 2014 23:54:28 +0000 (15:54 -0800)
commitb39f1486d4b38cc5a84c6a865607b775b90d04a7
tree07eccd8af6d40fafe1a091cdcaa130eff4863541
parent713cef059fed5745b93db19453e9e04dea6e7df2
librados: add timeout to wait_for_osdmap()

This is used by several pool operations independent of the objecter,
including rados_ioctx_create() to look up the pool id in the first
osdmap.

Unfortunately we can't just rely on WaitInterval returning ETIMEDOUT,
since it may also get interrupted by a signal, so we can't avoid
keeping track of time explicitly here.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit 1829d2c9fd13f2cbae4e192c9feb553047dad42c)

Conflicts:
src/librados/RadosClient.cc
src/librados/RadosClient.cc
src/librados/RadosClient.h