6565#include " port/lang.h"
6666#include " rocksdb/merge_operator.h"
6767#include " rocksdb/system_clock.h"
68+ #include " util/aligned_storage.h"
6869#include " util/autovector.h"
6970#include " util/cast_util.h"
7071#include " util/coding.h"
@@ -1900,7 +1901,7 @@ class MemTableInserter : public WriteBatch::Handler {
19001901 // Make creation optional but do not incur
19011902 // std::unique_ptr additional allocation
19021903 using MemPostInfoMap = std::map<MemTable*, MemTablePostProcessInfo>;
1903- using PostMapType = std:: aligned_storage<sizeof ( MemPostInfoMap) >::type;
1904+ using PostMapType = aligned_storage<MemPostInfoMap>::type;
19041905 PostMapType mem_post_info_map_;
19051906 // current recovered transaction we are rebuilding (recovery)
19061907 WriteBatch* rebuilding_trx_;
@@ -1914,15 +1915,15 @@ class MemTableInserter : public WriteBatch::Handler {
19141915 bool write_before_prepare_;
19151916 // Whether this batch was unprepared or not
19161917 bool unprepared_batch_;
1917- using DupDetector = std:: aligned_storage<sizeof ( DuplicateDetector) >::type;
1918+ using DupDetector = aligned_storage<DuplicateDetector>::type;
19181919 DupDetector duplicate_detector_;
19191920 bool dup_dectector_on_;
19201921
19211922 bool hint_per_batch_;
19221923 bool hint_created_;
19231924 // Hints for this batch
19241925 using HintMap = std::unordered_map<MemTable*, void *>;
1925- using HintMapType = std:: aligned_storage<sizeof ( HintMap) >::type;
1926+ using HintMapType = aligned_storage<HintMap>::type;
19261927 HintMapType hint_;
19271928
19281929 HintMap& GetHintMap () {
0 commit comments