Fixes a bug that alter node and create node does not work with
primary=on even when primary=off update or drop node against the
primary node has been done in the same session.