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);
24
24
25
25
echo "Testing primary: \n" ;
26
26
$ query = new MongoDB \Driver \Query (['x ' => 3 ], ['projection ' => ['y ' => 1 ]]);
27
- $ cursor = $ manager ->executeQuery (NS , $ query , $ primaryRp );
27
+ $ cursor = $ primary ->executeQuery (NS , $ query , $ primaryRp );
28
28
29
29
echo "is_primary: " , $ cursor ->getServer ()->isPrimary () ? 'true ' : 'false ' , "\n" ;
30
30
echo "is_secondary: " , $ cursor ->getServer ()->isSecondary () ? 'true ' : 'false ' , "\n\n" ;
31
31
32
32
echo "Testing secondary: \n" ;
33
33
$ query = new MongoDB \Driver \Query (['x ' => 3 ], ['projection ' => ['y ' => 1 ]]);
34
- $ cursor = $ manager ->executeQuery (NS , $ query , $ secondaryRp );
34
+ $ cursor = $ secondary ->executeQuery (NS , $ query , $ secondaryRp );
35
35
36
36
echo "is_primary: " , $ cursor ->getServer ()->isPrimary () ? 'true ' : 'false ' , "\n" ;
37
37
echo "is_secondary: " , $ cursor ->getServer ()->isSecondary () ? 'true ' : 'false ' , "\n\n" ;
You can’t perform that action at this time.
0 commit comments