Commit 64381ad7 authored by Guido Trotter's avatar Guido Trotter
Browse files

ChainOpCode is still BGL-only

Prevent mistakes with an assert.

Reviewed-by: iustinp
parent 8161a646
...@@ -208,6 +208,8 @@ class Processor(object): ...@@ -208,6 +208,8 @@ class Processor(object):
raise errors.ProgrammerError("LUs which require the BGL cannot" raise errors.ProgrammerError("LUs which require the BGL cannot"
" be chained to granular ones.") " be chained to granular ones.")
assert lu_class.REQ_BGL, "ChainOpCode is still BGL-only"
if lu_class.REQ_WSSTORE: if lu_class.REQ_WSSTORE:
sstore = ssconf.WritableSimpleStore() sstore = ssconf.WritableSimpleStore()
else: else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment