From 00dba6082e245d917cb7d6eed3c627211ff41cd7 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期五, 25 九月 2020 15:53:21 +0800
Subject: [PATCH] update

---
 src/util/sem_util.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/sem_util.c b/src/util/sem_util.c
index bf08adf..bc8c4f4 100644
--- a/src/util/sem_util.c
+++ b/src/util/sem_util.c
@@ -4,6 +4,7 @@
 static Logger logger = LoggerFactory::getLogger();
 
 int SemUtil::get(key_t key, unsigned int value) {
+// printf("==================SemUtil::get===============================\n");
   int semid, perms;
 
   perms = S_IRUSR | S_IWUSR;
@@ -113,7 +114,7 @@
 
   while (semtimedop(semId, &sops, 1, timeout) == -1)
     if (errno != EINTR) {
-      //err_msg(errno, "SemUtil::dec_timeout");
+     // err_msg(errno, "SemUtil::dec_timeout");
       return -1;
     }
 
@@ -122,7 +123,6 @@
 
 /* Release semaphore - increment it by 1 */
 int SemUtil::inc(int semId) {
-logger.debug("%d: SemUtil::inc\n", semId);
   struct sembuf sops;
 
   sops.sem_num = 0;

--
Gitblit v1.8.0