Revert "HAWQ-533. Cursor failed, if don't allocate resource in prepare."
Revert "HAWQ-533. Cursor failed, if don't allocate resource in prepare."

This reverts commit 96345af194bfd3ca05227037479c9835a5e495b0.

stanlyxiang/incubator-hawq,lavjain/incubator-hawq,stanlyxiang/incubator-hawq,lavjain/incubator-hawq,jianlirong/incubator-hawq,lavjain/incubator-hawq,jianlirong/incubator-hawq,jianlirong/incubator-hawq,huor/incubator-hawq,lavjain/incubator-hawq,jianlirong/incubator-hawq,outofmem0ry/incubator-hawq,outofmem0ry/incubator-hawq,lavjain/incubator-hawq,jianlirong/incubator-hawq,lavjain/incubator-hawq,wengyanqing/incubator-hawq,huor/incubator-hawq,lavjain/incubator-hawq,wengyanqing/incubator-hawq,huor/incubator-hawq,huor/incubator-hawq,huor/incubator-hawq,jianlirong/incubator-hawq,wengyanqing/incubator-hawq,stanlyxiang/incubator-hawq,outofmem0ry/incubator-hawq,lavjain/incubator-hawq,outofmem0ry/incubator-hawq,outofmem0ry/incubator-hawq,outofmem0ry/incubator-hawq,outofmem0ry/incubator-hawq,wengyanqing/incubator-hawq,huor/incubator-hawq,stanlyxiang/incubator-hawq,stanlyxiang/incubator-hawq,wengyanqing/incubator-hawq,huor/incubator-hawq,wengyanqing/incubator-hawq,wengyanqing/incubator-hawq,wengyanqing/incubator-hawq,jianlirong/incubator-hawq,stanlyxiang/incubator-hawq,jianlirong/incubator-hawq,stanlyxiang/incubator-hawq,outofmem0ry/incubator-hawq