fix compilation error appeared when REALTIME_TABLES option excluded from build