]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: re-register watch on old format image rename 9715/head
authorMykola Golub <mgolub@mirantis.com>
Wed, 15 Jun 2016 08:31:14 +0000 (11:31 +0300)
committerMykola Golub <mgolub@mirantis.com>
Wed, 15 Jun 2016 08:31:14 +0000 (11:31 +0300)
commit1a3973c8814200dc449a557a4fc8212911633985
treeb8fbe45767beeb717b3af0b04cc001d63f0ed59e
parent339176e40ef79b2fcdad7a839af267c1f1b3ffcb
librbd: re-register watch on old format image rename

The watching object name is changed when renaming an old format image,
so unregister the watcher before the rename, and register back after,
to avoid "Transport endpoint is not connected" error.

Fixes: http://tracker.ceph.com/issues/16321
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/librbd/Operations.cc