]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
libradosstriper: silence warning from -Wreorder 16890/head
authorsongweibin <song.weibin@zte.com.cn>
Tue, 8 Aug 2017 08:35:22 +0000 (16:35 +0800)
committersongweibin <song.weibin@zte.com.cn>
Tue, 8 Aug 2017 08:35:22 +0000 (16:35 +0800)
Signed-off-by: songweibin <song.weibin@zte.com.cn>
src/libradosstriper/RadosStriperImpl.cc

index 8d34ce51ecd5633aad6e1b02bb2a759a7e9f6c95..ac47951657379e4525cb9e0a28c36f0e6247bb8f 100644 (file)
@@ -247,10 +247,10 @@ void ReadCompletionData::complete_unlock(int r) {
 struct WriteCompletionData : CompletionData {
   /// safe completion handler
   librados::IoCtxImpl::C_aio_Complete *m_safe;
-  /// return code of write completion, to be remembered until unlocking happened
-  int m_writeRc;
   /// completion object for the unlocking of the striped object at the end of the write
   librados::AioCompletion *m_unlockCompletion;
+  /// return code of write completion, to be remembered until unlocking happened
+  int m_writeRc;
   /// constructor
   WriteCompletionData(libradosstriper::RadosStriperImpl * striper,
                      const std::string& soid,