]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Fix a compilation error in CircleCI vs2019 CXX20 (#8090) 43/head
authorYanqin Jin <yanqin@fb.com>
Tue, 23 Mar 2021 17:26:31 +0000 (10:26 -0700)
committerMatan Breizman <mbreizma@redhat.com>
Thu, 22 Sep 2022 10:52:20 +0000 (10:52 +0000)
Summary:
As title.
Always specify namespace::symbol_name...
Test plan
CircleCI and other CI results

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8090

Reviewed By: ltamasi

Differential Revision: D27256130

Pulled By: riversand963

fbshipit-source-id: b9b9ae2b3a8b4a16f0384292e71c6aecca93c570

third-party/folly/folly/synchronization/DistributedMutex-inl.h

index ca5650de696255a37269b329154760e9eae0bbb2..6e250c94d25e6ddeaa03fe0e0911e30f32d00b48 100644 (file)
@@ -1374,7 +1374,8 @@ inline std::uintptr_t tryWake(
     // we need release here because of the write to waker_ and also because we
     // are unlocking the mutex, the thread we do the handoff to here should
     // see the modified data
-    new (&waiter->metadata_) Metadata(waker, bit_cast<uintptr_t>(sleepers));
+    new (&waiter->metadata_)
+        Metadata(waker, folly::bit_cast<std::uintptr_t>(sleepers));
     waiter->futex_.store(kWake, std::memory_order_release);
     return 0;
   }