In the schematic you posted both the anode and the cathode of the diode are connected to the same potential, the signal ground, because the positive input of the opamp is also at the signal ground. A and B inputs of the opamp are at the same potential.
To polarize the diode in reverse, you'll have to keep the in+ of the opamp at a higher potential than the anode of the diode.