Fix planner performance degradation with using new type of snapshot in get_actual_variable_range

Fix planner performance degradation with using new type of snapshot in get_actual_variable_range

Edit