Change method dispatch in ClientOps to enforce luxi.REQ_ALL
authorKlaus Aehlig <aehlig@google.com>
Mon, 15 Jul 2013 09:24:28 +0000 (11:24 +0200)
committerKlaus Aehlig <aehlig@google.com>
Mon, 15 Jul 2013 12:59:58 +0000 (14:59 +0200)
commit64d7e30f97ea4996426d227734b7a337f2f80b88
tree43e1182d9cac34375a2bfad2c2424fcbf42c088e
parent75f2ff7ddcbaf1b1dc2a7b6cc303d0f880d5d12a
Change method dispatch in ClientOps to enforce luxi.REQ_ALL

ClientOps' handle_request dispatches on the luxi request received. Change
this to first verify if the request is luxi.REQ_ALL. In this way, we catch
programming errors introducing "secret" luxi requests earlier. This is relevant,
as our other checks for internal consistency compare against luxi.REQ_ALL.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
lib/server/masterd.py