Skip to content

Commit

Permalink
resource: ubridge: clarify comment about format used for writing expbuf
Browse files Browse the repository at this point in the history
  • Loading branch information
prajnoha committed Jul 14, 2022
1 parent 4430e62 commit 1fb6509
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/resource/ubridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,11 @@ static int _build_cmd_kv_buffers(sid_resource_t *cmd_res, const struct cmd_reg *
goto fail;
}

/* For exporting the raw kv-store, format is set to NO_FORMAT. */
/*
* For exporting the KV store internally, that is MSG_CATEGORY_SELF commands and
* commands exporting buffer to main process, we always use the raw NO_FORMAT.
* For external clients, we export in format which is requested.
*/
if ((ucmd_ctx->req_cat == MSG_CATEGORY_SELF) || (cmd_reg->flags & CMD_KV_EXPBUF_TO_MAIN))
format = NO_FORMAT;
else
Expand Down

0 comments on commit 1fb6509

Please sign in to comment.