1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Revert some debug statements that slipped in with last checkin.

This commit is contained in:
Petr Rockai 2010-10-20 14:51:18 +00:00
parent d28c8ccfbd
commit 8f1ead4640

View File

@ -210,12 +210,9 @@ static int lock_vg(struct local_client *client)
if (lock_mode == LCK_UNLOCK) {
DEBUGLOG("PRE: UNLOCK\n");
lkid = (int)(long)dm_hash_lookup(lock_hash, lockname);
if (lkid == 0) {
DEBUGLOG("lock not found in table\n");
if (lkid == 0)
return EINVAL;
}
status = sync_unlock(lockname, lkid);
if (status)
@ -224,7 +221,6 @@ static int lock_vg(struct local_client *client)
dm_hash_remove(lock_hash, lockname);
}
else {
DEBUGLOG("PRE: LOCK\n");
/* Read locks need to be PR; other modes get passed through */
if (lock_mode == LCK_READ)
lock_mode = LCK_PREAD;