When a pregnant woman has a c-section, is she able to be awake during a major surgery, and not under anesthesia. Or am I missing something?

Yes. For a c-section the preferred mode of anesthesia is a spinal. In these cases a small amount of local anesthetic and opiate is injected next to the spinal cord. This results in the patient being numb from the chest down. This is preferred because it is safer than putting a pregnant woman to sleep and it allows the mother to immediately see her new child.