From 108899e189dba592433d0c062416bd1b3dbc3009 Mon Sep 17 00:00:00 2001 From: Masakazu Kitajo Date: Mon, 24 Jun 2019 14:02:36 +0900 Subject: [PATCH] Update MT_Hashtable interface to use smart pointer Mutex_lock uses smartpointers after #4926, but MT_hashtable was not updated. --- include/tscore/MT_hashtable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tscore/MT_hashtable.h b/include/tscore/MT_hashtable.h index cb6a80d34ee..92ada4d8863 100644 --- a/include/tscore/MT_hashtable.h +++ b/include/tscore/MT_hashtable.h @@ -354,10 +354,10 @@ template class MTHashTable } } - ProxyMutex * + Ptr lock_for_key(key_t key) { - return locks[part_num(key)].get(); + return locks[part_num(key)]; } int