Project

General

Profile

Actions

Documentation #20119

closed

Documentation of Python RBD API does not say that aio_* functions call their callbacks in DIFFERENT (dummy) thread

Added by Марк Коренберг almost 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Target version:
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Documentation of Python RBD API does not say that aio_* functions call their callbacks in DIFFERENT (dummy) thread

Everyone must know that special behavior. For example, next Python code (very stupid one, but just to show) will actually not hang:

count = [2]
def cb(*args):
    count[0] -= 1
ceph_image.aio_read(offset1, length1, cb)
ceph_image.aio_read(offset2, length2, cb)

while count[0]:
    time.sleep(0.1)

Actions

Also available in: Atom PDF