Project

General

Profile

Actions

Bug #52001

closed

libcephsqlite: CheckReservedLock the result will always be zero

Added by Shuai Wang over 2 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
% Done:

0%

Source:
Development
Tags:
backport_processed
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This method is used to check if the file holds reserved lock or above. But the result is always set to zero no matter what the current locking status is.

if (lock > SQLITE_LOCK_SHARED) {
    *result = 1;
  }

  df(10);
  f->io.rs->print_lockers(*_dout);
  *_dout << dendl;

  *result = 0;


Related issues 1 (0 open1 closed)

Copied to cephsqlite - Backport #52247: pacific: libcephsqlite: CheckReservedLock the result will always be zeroResolvedPatrick DonnellyActions
Actions

Also available in: Atom PDF