Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit027b145

Browse files
committed
Fix Bug: Lock_destroy() return AGMDB_SUCCESS if the lock has been destroyed successfully.
1 parent738885d commit027b145

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎apache2/ag_mdb/ag_mdb.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ int Lock_destroy(struct agmdb_lock *db_lock) {
127127
if (AGMDB_isError(rc))
128128
return rc;
129129
#ifndef _WIN32
130+
if (db_lock->sem_id = -1)
131+
return AGMDB_SUCCESS;
130132
rc =semctl(db_lock->sem_id,0, IPC_RMID);
131133
if (rc == -1)
132134
return AGMDB_ERROR_LOCK_LINUX_SEM_DESTROY_FAIL;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp