File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ $secondary = $manager->selectServer($secondaryRp);
2424
2525echo "Testing primary: \n" ;
2626$ query = new MongoDB \Driver \Query (['x ' => 3 ], ['projection ' => ['y ' => 1 ]]);
27- $ cursor = $ manager ->executeQuery (NS , $ query , $ primaryRp );
27+ $ cursor = $ primary ->executeQuery (NS , $ query , $ primaryRp );
2828
2929echo "is_primary: " , $ cursor ->getServer ()->isPrimary () ? 'true ' : 'false ' , "\n" ;
3030echo "is_secondary: " , $ cursor ->getServer ()->isSecondary () ? 'true ' : 'false ' , "\n\n" ;
3131
3232echo "Testing secondary: \n" ;
3333$ query = new MongoDB \Driver \Query (['x ' => 3 ], ['projection ' => ['y ' => 1 ]]);
34- $ cursor = $ manager ->executeQuery (NS , $ query , $ secondaryRp );
34+ $ cursor = $ secondary ->executeQuery (NS , $ query , $ secondaryRp );
3535
3636echo "is_primary: " , $ cursor ->getServer ()->isPrimary () ? 'true ' : 'false ' , "\n" ;
3737echo "is_secondary: " , $ cursor ->getServer ()->isSecondary () ? 'true ' : 'false ' , "\n\n" ;
You can’t perform that action at this time.
0 commit comments