[sr-dev] git:5.6:3ad3a61a: dmq: fix inter-lock on error