Merge pull request #2972 from ctiller/get-reserved-things-right

Add some reserved checks that need to be present
This commit is contained in:
Yang Gao 2015-08-19 09:59:48 -07:00
commit 066438eca1
1 changed files with 1 additions and 0 deletions

View File

@ -581,6 +581,7 @@ NAN_METHOD(Call::StartBatch) {
uint32_t type = keys->Get(i)->Uint32Value(); uint32_t type = keys->Get(i)->Uint32Value();
ops[i].op = static_cast<grpc_op_type>(type); ops[i].op = static_cast<grpc_op_type>(type);
ops[i].flags = 0; ops[i].flags = 0;
ops[i].reserved = NULL;
switch (type) { switch (type) {
case GRPC_OP_SEND_INITIAL_METADATA: case GRPC_OP_SEND_INITIAL_METADATA:
op.reset(new SendMetadataOp()); op.reset(new SendMetadataOp());