]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd: Initialize std::atomic flag with an equals sign
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 9 Nov 2016 21:07:32 +0000 (16:07 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 17 Nov 2016 00:54:31 +0000 (19:54 -0500)
commitcfa27624d95c8ea3a732bc75cd31c97515b6a9cd
tree777a5bd97cc58b1d39ef070c8e652f902fc9c74a
parent601c35dee822cc9cc0a19335a86d7a4adc37f38e
rbd: Initialize std::atomic flag with an equals sign

I know it's weird, but

    std::atomic_flag f = ATOMIC_FLAG_INIT;

is guaranteed to work, while

    std::atomic_flag g(ATOMIC_FLAG_INIT);

is free to make demons fly out of your nose.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/librbd/operation/ObjectMapIterate.h