master/master.c
changeset 1047 5f9d98621c7f
parent 1041 42c9ac58d9ce
child 1055 2be8918682fa
equal deleted inserted replaced
1046:51865c866155 1047:5f9d98621c7f
  1027 
  1027 
  1028     if (alias) {
  1028     if (alias) {
  1029         // find slave with the given alias
  1029         // find slave with the given alias
  1030         for (; slave < master->slaves + master->slave_count;
  1030         for (; slave < master->slaves + master->slave_count;
  1031                 slave++) {
  1031                 slave++) {
  1032 			if (slave->sii.alias != alias)
  1032 			if (slave->sii.alias == alias)
  1033 				continue;
  1033                 break;
  1034 		}
  1034 		}
  1035         if (slave == master->slaves + master->slave_count)
  1035         if (slave == master->slaves + master->slave_count)
  1036             return NULL;
  1036             return NULL;
  1037 	}
  1037 	}
  1038 
  1038