The path parameter helps the app determine the path that the response is referring to. A sync call is typically associated to a read request to a given path, so the path in the sync call helps the application make the association to that path.
-Flavio > On 07 Sep 2016, at 11:35, Mohammad arshad <mohammad.ars...@huawei.com> wrote: > > Hello Everyone > ZooKeeper sync API takes a path argument. > But it seems this path is no where used in the server code. Same path is > returned from the server to client again in SyncResponse. > Is the any other purpose of sync API path parameter. > Will there be any different impact for below sync commands form zk Cli? > sync /path1 > sync /path2 > > Thanks > -Arshad