Skip to content

Commit

Permalink
chore: rename Guard to HybridGuard
Browse files Browse the repository at this point in the history
  • Loading branch information
zz-jason committed Dec 16, 2023
1 parent 74b2876 commit 8a90c5c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/storage/buffer-manager/BMPlainGuard.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once
#include "Config.hpp"
#include "Units.hpp"
#include "sync-primitives/Latch.hpp"
#include "sync-primitives/HybridGuard.hpp"
#include "utils/JumpMU.hpp"
#include "utils/RandomGenerator.hpp"

Expand Down
2 changes: 1 addition & 1 deletion source/storage/buffer-manager/BufferFrame.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "Swip.hpp"
#include "Units.hpp"
#include "sync-primitives/Latch.hpp"
#include "sync-primitives/HybridGuard.hpp"
#include "utils/JsonUtil.hpp"

#include <glog/logging.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ enum class LATCH_FALLBACK_MODE : u8 {
SHOULD_NOT_HAPPEN = 4
};

/// Like std::unique_lock, std::shared_lock, std::lock_guard, this HybridGuard is used
/// together with HybridLatch to provide various lock mode.
/// Like std::unique_lock, std::shared_lock, std::lock_guard, this HybridGuard
/// is used together with HybridLatch to provide various lock mode.
///
/// TODO(jian.z): should we unlock the guard when it's destroied?
class HybridGuard {
Expand Down
2 changes: 1 addition & 1 deletion source/sync-primitives/PageGuard.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include "Exceptions.hpp"
#include "Latch.hpp"
#include "HybridGuard.hpp"
#include "concurrency-recovery/CRMG.hpp"
#include "profiling/counters/WorkerCounters.hpp"
#include "storage/buffer-manager/BufferManager.hpp"
Expand Down

0 comments on commit 8a90c5c

Please sign in to comment.