We have different namespaces loaded into cdb and each namespace is from different component in the application. Each namespace has one subscriber and getting notifications whenever there is a config change. We have a use case in which different namespace configs are pushed in a single netconf transaction and we need a way to identify whether the cdb notifications are from same transaction or different for internal verification.
Can you please help us on this.
You cannot make a cdb_get_txid() call over the subscription socket. You need a data socket for that CDB API call. What is your concern regarding doing so?
Without knowing your use case in detail here, an alternative could be to use cdb_read_subscription_socket2() when reading the subscription notification and when the CDB_SUB_FLAG_IS_LAST flag is set you increment a counter that you share between your applications. See confd_lib_cdb(3) man page for details on the CDB_SUB_FLAG_IS_LAST flag.