Browse Source

Add a debug message for when obtaining a lock fails

Sponsored by: iXsystems, Inc.
master
Ryan Moeller 1 month ago
parent
commit
27325c87d8
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libpkg/pkgdb.c

+ 4
- 0
libpkg/pkgdb.c View File

@@ -2993,6 +2993,10 @@ pkgdb_obtain_lock(struct pkgdb *db, pkgdb_lock_t type)

ret = pkgdb_try_lock(db, lock_sql, type, false);

if (ret != EPKG_OK)
pkg_debug(1, "failed to obtain the lock: %s",
sqlite3_errmsg(db->sqlite));

return (ret);
}


Loading…
Cancel
Save