@@ -171,8 +171,6 @@ class Transaction {
171171 thread_id_(std::this_thread::get_id()),
172172 txn_id_(txn_id),
173173 prev_lsn_(INVALID_LSN),
174- shared_lock_set_{new std::unordered_set<RID>},
175- exclusive_lock_set_{new std::unordered_set<RID>},
176174 s_table_lock_set_{new std::unordered_set<table_oid_t >},
177175 x_table_lock_set_{new std::unordered_set<table_oid_t >},
178176 is_table_lock_set_{new std::unordered_set<table_oid_t >},
@@ -240,17 +238,11 @@ class Transaction {
240238 */
241239 inline void AddIntoDeletedPageSet (page_id_t page_id) { deleted_page_set_->insert (page_id); }
242240
243- /* * @return the set of resources under a shared lock */
244- inline auto GetSharedLockSet () -> std::shared_ptr<std::unordered_set<RID>> { return shared_lock_set_; }
245-
246241 /* * @return the set of rows under a shared lock */
247242 inline auto GetSharedRowLockSet () -> std::shared_ptr<std::unordered_map<table_oid_t, std::unordered_set<RID>>> {
248243 return s_row_lock_set_;
249244 }
250245
251- /* * @return the set of resources under an exclusive lock */
252- inline auto GetExclusiveLockSet () -> std::shared_ptr<std::unordered_set<RID>> { return exclusive_lock_set_; }
253-
254246 /* * @return the set of rows in under an exclusive lock */
255247 inline auto GetExclusiveRowLockSet () -> std::shared_ptr<std::unordered_map<table_oid_t, std::unordered_set<RID>>> {
256248 return x_row_lock_set_;
@@ -355,11 +347,6 @@ class Transaction {
355347 /* * Concurrent index: the page IDs that were deleted during index operation.*/
356348 std::shared_ptr<std::unordered_set<page_id_t >> deleted_page_set_;
357349
358- /* * LockManager: the set of shared-locked tuples held by this transaction. */
359- std::shared_ptr<std::unordered_set<RID>> shared_lock_set_;
360- /* * LockManager: the set of exclusive-locked tuples held by this transaction. */
361- std::shared_ptr<std::unordered_set<RID>> exclusive_lock_set_;
362-
363350 /* * LockManager: the set of table locks held by this transaction. */
364351 std::shared_ptr<std::unordered_set<table_oid_t >> s_table_lock_set_;
365352 std::shared_ptr<std::unordered_set<table_oid_t >> x_table_lock_set_;
0 commit comments