Replies: 2 comments 1 reply
-
This is wrong.
Please read the code of m0_client_init().
Motr uses many global variables per-process. In one process, only one single Motr client process is supported. |
Beta Was this translation helpful? Give feedback.
-
@kiwionly2 If you want to have multi-threaded Motr applications, motr/st/utils/cc_cp_cat.c |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was playing around example from
cortx-motr/motr/examples
.For
example1.c
, when I movingstruct m0_config
from global variable to local variable close to where it use, it compile successfully, however fail to run.The error as below ( look like it read some uninitialize value )
Since
struct m0_config
only use bym0_client_init
, shouldn't it suppose to work at local scope ?One of the advantage of local scope is it will enabled developer create multiple client instance by encapsulate client variable ( global variable in this example) to a struct as below:
*not sure if this is a bug, I open at discussion instead.
Beta Was this translation helpful? Give feedback.
All reactions