@@ -407,12 +407,12 @@ impl Client {
407407 }
408408
409409 // Report query executed statistics.
410- self . stats . query ( address. id ) ;
410+ self . stats . query ( self . process_id , address. id ) ;
411411
412412 // The transaction is over, we can release the connection back to the pool.
413413 if !server. in_transaction ( ) {
414414 // Report transaction executed statistics.
415- self . stats . transaction ( address. id ) ;
415+ self . stats . transaction ( self . process_id , address. id ) ;
416416
417417 // Release server back to the pool if we are in transaction mode.
418418 // If we are in session mode, we keep the server until the client disconnects.
@@ -493,12 +493,12 @@ impl Client {
493493 }
494494
495495 // Report query executed statistics.
496- self . stats . query ( address. id ) ;
496+ self . stats . query ( self . process_id , address. id ) ;
497497
498498 // Release server back to the pool if we are in transaction mode.
499499 // If we are in session mode, we keep the server until the client disconnects.
500500 if !server. in_transaction ( ) {
501- self . stats . transaction ( address. id ) ;
501+ self . stats . transaction ( self . process_id , address. id ) ;
502502
503503 if self . transaction_mode {
504504 self . stats . server_idle ( server. process_id ( ) , address. id ) ;
@@ -532,7 +532,7 @@ impl Client {
532532 // Release server back to the pool if we are in transaction mode.
533533 // If we are in session mode, we keep the server until the client disconnects.
534534 if !server. in_transaction ( ) {
535- self . stats . transaction ( address. id ) ;
535+ self . stats . transaction ( self . process_id , address. id ) ;
536536
537537 if self . transaction_mode {
538538 self . stats . server_idle ( server. process_id ( ) , address. id ) ;
0 commit comments