@@ -407,12 +407,12 @@ impl Client {
407
407
}
408
408
409
409
// Report query executed statistics.
410
- self . stats . query ( address. id ) ;
410
+ self . stats . query ( self . process_id , address. id ) ;
411
411
412
412
// The transaction is over, we can release the connection back to the pool.
413
413
if !server. in_transaction ( ) {
414
414
// Report transaction executed statistics.
415
- self . stats . transaction ( address. id ) ;
415
+ self . stats . transaction ( self . process_id , address. id ) ;
416
416
417
417
// Release server back to the pool if we are in transaction mode.
418
418
// If we are in session mode, we keep the server until the client disconnects.
@@ -493,12 +493,12 @@ impl Client {
493
493
}
494
494
495
495
// Report query executed statistics.
496
- self . stats . query ( address. id ) ;
496
+ self . stats . query ( self . process_id , address. id ) ;
497
497
498
498
// Release server back to the pool if we are in transaction mode.
499
499
// If we are in session mode, we keep the server until the client disconnects.
500
500
if !server. in_transaction ( ) {
501
- self . stats . transaction ( address. id ) ;
501
+ self . stats . transaction ( self . process_id , address. id ) ;
502
502
503
503
if self . transaction_mode {
504
504
self . stats . server_idle ( server. process_id ( ) , address. id ) ;
@@ -532,7 +532,7 @@ impl Client {
532
532
// Release server back to the pool if we are in transaction mode.
533
533
// If we are in session mode, we keep the server until the client disconnects.
534
534
if !server. in_transaction ( ) {
535
- self . stats . transaction ( address. id ) ;
535
+ self . stats . transaction ( self . process_id , address. id ) ;
536
536
537
537
if self . transaction_mode {
538
538
self . stats . server_idle ( server. process_id ( ) , address. id ) ;
0 commit comments